ProgressBar = {
  max: null,
  $inner: null,
  init: function (number) {
    this.max = number;
    this.$inner = $("#progressinner");
  },
  set: function ( progress ) {
    // it sets from number of contacts already processed.
    var percentage = (progress * 100) / this.max;
    this.$inner.css("width",percentage + "%");
  }
};